<template>
	<view class="ucenter-page">
		<u-navbar title-size="36" height="42" :border-bottom="false" title="我的资料"></u-navbar>
		<view class="u-content">
			<view class="u-cells">
				<view class="u-avatar">
					<image src="../../static/images/avatar.jpg" class="img" mode=""></image>
				</view>
				<view class="u-cell" @click="openUrl('/pages/ucenter/changeContactInfo')">
					<view class="u-cell-title">手机</view>
					<view class="u-cell-val flex_bd">
						188****7645
					</view>
					<image src="../../static/images/arrow-set.png" class="arrow" mode=""></image>
				</view>
				<view class="u-cell" @click="openUrl('/pages/ucenter/bankCardManagement')">
					<view class="u-cell-title">银行卡</view>
					<view class="u-cell-val flex_bd">
						6002 **** **** **** 798
					</view>
					<image src="../../static/images/arrow-set.png" class="arrow" mode=""></image>
				</view>
				<view class="u-cell">
					<view class="u-cell-title">认证信息</view>
					<view class="u-cell-val u-m-r-20">
						未进行实名认证
					</view>
				</view>
				<view class="u-cell u-cell-access">
					<view class="u-cell-top">
						<view class="u-cell-title">实名认证</view>
						<view class="u-cell-tips">
							<image src="../../static/images/info.png" class="info-icon" mode=""></image>
							<text>实名认证通过后不能更改</text>
						</view>
					</view>
					<view class="u-cell-load">
						<view class="u-cell-item flex_bd">
							<u-upload :custom-btn="true" max-count="1">
								<view slot="addBtn" class="slot-btn slot-card1">
									<image src="../../static/images/load.png" class="slot-icon" mode=""></image>
								</view>
							</u-upload>
							<view class="u-load-text">点击上传<text>人像面</text></view>
						</view>
						<view class="u-cell-item flex_bd">
							<u-upload :custom-btn="true" max-count="1">
								<view slot="addBtn" class="slot-btn slot-card2">
									<image src="../../static/images/load.png" class="slot-icon" mode=""></image>
								</view>
							</u-upload>
							<view class="u-load-text">点击上传<text>国徽面</text></view>
						</view>
					</view>
				</view>
			</view>
			<view class="u-foot">
				<view class="u-foot-flex">
					<view class="u-foot-item flex_bd">
						<button type="default" class="btn">取消</button>
					</view>
					<view class="u-foot-item flex_bd">
						<button type="default" class="btn confirm-btn" @click="openUrl('/pages/ucenter/myInfoCertified')">确定</button>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {}
		},
		onLoad() {

		},
		methods: {
			openUrl(e) {
				console.log(e)
				uni.navigateTo({
					url: e
				});
			},
		}
	}
</script>

<style lang="scss">
	.u-content {
		background: linear-gradient(180deg, rgba(170, 206, 57, 0.19) 0%, rgba(255, 255, 255, 0) 100%);
		padding: 144rpx 32rpx 0;
	}

	.u-cells {
		padding: 122rpx 32rpx 0;
		background-color: #fff;
		border-radius: 20rpx;
		height: 906rpx;

		.u-cell {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 26rpx 12rpx 26rpx 32rpx;
			background-color: #F3F4F6;
			border-radius: 12rpx;
			margin-bottom: 24rpx;

			.u-cell-title {
				font-size: 28rpx;
				color: #383842;
			}

			.arrow {
				width: 48rpx;
				height: 48rpx;
				display: block;
			}

			.u-cell-val {
				font-size: 28rpx;
				color: #606366;
				text-align: right;
			}

			.certified {
				width: 120rpx;
				height: 40rpx;
				display: block;
				margin-right: 16rpx;
			}

			.u-cell-left {
				line-height: 40rpx;

				.u-cell-title {
					margin-bottom: 8rpx;
				}
			}
		}
	}

	.u-avatar {
		text-align: center;
		margin-top: -206rpx;

		.img {
			width: 184rpx;
			height: 184rpx;
			border-radius: 50%;
			border: 8rpx solid #fff;
		}
	}

	.u-cell.u-cell-access {
		display: block;
		padding: 28rpx;

		.u-cell-top {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 20rpx;

			.u-cell-tips {
				font-size: 24rpx;
				color: #9C9C9C;
				display: flex;
				align-items: center;

				.info-icon {
					width: 32rpx;
					height: 32rpx;
					display: block;
				}
			}
		}

		.u-cell-load {
			display: flex;
			margin: 0 -12rpx;

			.u-cell-item {
				padding: 0 12rpx;
			}
		}
	}


	.slot-btn {
		width: 277rpx;
		height: 164rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background: rgb(244, 245, 246);
		border-radius: 12rpx;
		border: 2rpx dashed #D6DAE3;
		position: relative;
		background-position: center;
		background-repeat: no-repeat;
		background-size: 100% 100%;
	}

	.slot-card1 {
		background-image: url(../../static/images/card1.png);
	}

	.slot-card2 {
		background-image: url(../../static/images/card2.png);
	}

	.slot-icon {
		width: 90rpx;
		height: 90rpx;
	}

	.u-load-text {
		text-align: center;
		font-size: 26rpx;
		color: #606366;
		margin-top: 16rpx;

		text {
			color: #A2C833;
		}
	}
	
	.u-foot{
		padding: 24rpx;
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		
		.u-foot-flex{
			display: flex;
			margin: 0 -10rpx;
			
			.u-foot-item{
				padding: 0 10rpx;
				
				.btn{
					font-size: 36rpx;
					color: #606366;
					line-height: 96rpx;
					border-radius: 48rpx;
					background-color: #ECEDED;
				}
				
				.confirm-btn{
					color: #fff;
					background-color: #A2C833;
				}
			}
		}
	}
</style>
